package com.jjsj.mall.shop.entity;

import com.jjsj.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 订单商品对象 yoshop_order_goods
 *
 * @author www.joolun.com
 * @date 2022-10-24
 */
public class YoshopOrderGoods {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private String orderGoodsId;

    /**
     * 商品id
     */
    @Excel(name = "商品id")
    private String goodsId;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String goodsName;

    /**
     * 商品封面图id
     */
    @Excel(name = "商品封面图id")
    private String imageId;

    /**
     * 库存计算方式(10下单减库存 20付款减库存)
     */
    @Excel(name = "库存计算方式(10下单减库存 20付款减库存)")
    private String deductStockType;

    /**
     * 规格类型(10单规格 20多规格)
     */
    @Excel(name = "规格类型(10单规格 20多规格)")
    private String specType;

    /**
     * 商品sku标识
     */
    @Excel(name = "商品sku标识")
    private String specSkuId;

    /**
     * 商品规格id
     */
    @Excel(name = "商品规格id")
    private String goodsSpecId;

    /**
     * 商品规格信息
     */
    @Excel(name = "商品规格信息")
    private String goodsAttr;

    /**
     * 商品详情
     */
    @Excel(name = "商品详情")
    private String content;

    /**
     * 商品编码
     */
    @Excel(name = "商品编码")
    private String goodsNo;

    /**
     * 商品价格
     */
    @Excel(name = "商品价格")
    private BigDecimal goodsPrice;

    /**
     * 商品划线价
     */
    @Excel(name = "商品划线价")
    private BigDecimal linePrice;

    /**
     * 商品重量(Kg)
     */
    @Excel(name = "商品重量(Kg)")
    private String goodsWeight;

    /**
     * 购买数量
     */
    @Excel(name = "购买数量")
    private String totalNum;

    /**
     * 商品总价
     */
    @Excel(name = "商品总价")
    private BigDecimal totalPrice;

    /**
     * 订单id
     */
    @Excel(name = "订单id")
    private String orderId;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private String userId;

    /**
     * 小程序id
     */
    @Excel(name = "小程序id")
    private String wxappId;

    private Long createTime;

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public void setOrderGoodsId(String orderGoodsId) {
        this.orderGoodsId = orderGoodsId;
    }

    public String getOrderGoodsId() {
        return orderGoodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setImageId(String imageId) {
        this.imageId = imageId;
    }

    public String getImageId() {
        return imageId;
    }

    public void setDeductStockType(String deductStockType) {
        this.deductStockType = deductStockType;
    }

    public String getDeductStockType() {
        return deductStockType;
    }

    public void setSpecType(String specType) {
        this.specType = specType;
    }

    public String getSpecType() {
        return specType;
    }

    public void setSpecSkuId(String specSkuId) {
        this.specSkuId = specSkuId;
    }

    public String getSpecSkuId() {
        return specSkuId;
    }

    public void setGoodsSpecId(String goodsSpecId) {
        this.goodsSpecId = goodsSpecId;
    }

    public String getGoodsSpecId() {
        return goodsSpecId;
    }

    public void setGoodsAttr(String goodsAttr) {
        this.goodsAttr = goodsAttr;
    }

    public String getGoodsAttr() {
        return goodsAttr;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    public String getGoodsNo() {
        return goodsNo;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setLinePrice(BigDecimal linePrice) {
        this.linePrice = linePrice;
    }

    public BigDecimal getLinePrice() {
        return linePrice;
    }

    public void setGoodsWeight(String goodsWeight) {
        this.goodsWeight = goodsWeight;
    }

    public String getGoodsWeight() {
        return goodsWeight;
    }

    public void setTotalNum(String totalNum) {
        this.totalNum = totalNum;
    }

    public String getTotalNum() {
        return totalNum;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setWxappId(String wxappId) {
        this.wxappId = wxappId;
    }

    public String getWxappId() {
        return wxappId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("orderGoodsId", getOrderGoodsId())
                .append("goodsId", getGoodsId())
                .append("goodsName", getGoodsName())
                .append("imageId", getImageId())
                .append("deductStockType", getDeductStockType())
                .append("specType", getSpecType())
                .append("specSkuId", getSpecSkuId())
                .append("goodsSpecId", getGoodsSpecId())
                .append("goodsAttr", getGoodsAttr())
                .append("content", getContent())
                .append("goodsNo", getGoodsNo())
                .append("goodsPrice", getGoodsPrice())
                .append("linePrice", getLinePrice())
                .append("goodsWeight", getGoodsWeight())
                .append("totalNum", getTotalNum())
                .append("totalPrice", getTotalPrice())
                .append("orderId", getOrderId())
                .append("userId", getUserId())
                .append("wxappId", getWxappId())
                .toString();
    }
}
